package com.zp.base.admin.dao;

import com.zp.base.admin.entity.UserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Set;

/**
 * 
 * 
 * @author zhangpeng
 * @email zhangpeng@aliyun.com
 * @date 2021-02-28 11:15:56
 */
@Mapper
public interface UserDao extends BaseMapper<UserEntity> {

    List<String> findRolesByUserId(Long id);

    List<String> findPermissionsByUserId(Long id);

    Set<Long> getMenusByUserId(Long id);

    List<Long> getRoleIdsByUserId(Long id);

}
